#!/bin/bash

#FILES=`ls ./*.txt`
#i=1

#for file in $FILES
#do
#    mv $file $i-aa.txt
#    i=`expr $i + 1`
#done

FILES=`ls ./*.txt`
i=1

for file in $FILES
do
    mv $file $i.txt
    i=`expr $i + 1`
done
